package com.xianyu.eurekaconsumerfeign.controller;

import com.xianyu.eurekaconsumerfeign.service.YuClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: xianyunpeng
 */
@RestController
public class YuController {
    @Autowired
    YuClient yuClient;

    @GetMapping("/consumer")
    public String dc() {
        return yuClient.consumer();
    }
}
